package homework_03;

import java.util.Scanner;

/**
 * 判断数字能否被5或6整除
 */
public class Test_07 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入正整数");
        int num = sc.nextInt();
        if(num%5==0 && num%6==0){
            System.out.println(num + "能被5和6整除");
        }else if(num%5==0&&num%6!=0){
            System.out.println(num + "能被5整除");
        }else if(num%5!=0&&num%6==0){
            System.out.println(num + "能被6整除");
        }else if(num%5!=0&&num%6!=0){
            System.out.println(num + "不能被5或6整除");
        }
    }
}
